package xyz.zhzby.cyzx.oj.dto.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author zby
 * @date 2022/01/19
 */
@Data
@ApiModel("试题返回封装")
public class ProblemResponse {

    @ApiModelProperty(value = "主键ID")
    private Long id;

    @ApiModelProperty(value = "试题序号")
    private Integer number;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "最大运行时间")
    private Integer timeLimit;

    @ApiModelProperty(value = "最大运行内存")
    private Integer memoryLimit;

    @ApiModelProperty(value = "试题描述")
    private String describe;

    @ApiModelProperty(value = "提示")
    private String hint;

    @ApiModelProperty(value = "状态（0草稿1发布2回收站）")
    private Integer status;

    @ApiModelProperty(value = "试题标签列表（ID与name）")
    private List<Info> categorys;

    @ApiModelProperty(value = "试题测试点列表")
    private List<CheckPointInfo> checkPoints;

    @ApiModelProperty("点赞量")
    private int likeCount;

    @ApiModelProperty("收藏量")
    private int collectCount;

    @ApiModelProperty("评论量")
    private int commentCount;

    @ApiModelProperty("提交次数")
    private int submitCount;

    @ApiModelProperty("通过次数")
    private int passCount;

    @ApiModelProperty("当前用户做此题进程（0已通过 1尝试未通过 2未尝试）")
    private int process;

}
